home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
cug173.zip
/
LEX.HLP
< prev
next >
Wrap
Text File
|
1984-01-18
|
3KB
|
122 lines
/*
HEADER: CUG nnn.nn;
TITLE: LEX - A Lexical Analyser Generator
VERSION: 1.0 for IBM-PC
DATE: Sep 29, 195
DESCRIPTION: A Lexical Analyser Generator. From UNIX
KEYWORDS: Lexical Analyser Generator YACC C PREP
SYSTEM: IBM-PC and Compatiables
FILENAME: LEX.HLP
WARNINGS: This program is not for the casual user. It will
be useful primarily to expert developers.
CRC: N/A
SEE-ALSO: YACC and PREP
AUTHORS: Scott Guthery 11100 leadfwood lane Austin, TX 78750
COMPILERS: DESMET-C
REFERENCES: UNIX Systems Manuals
*/
LEX - Lexical Analyzer Generator
================================
LEX is a program which will generate a table-driven lexical analyzer in
C. It takes as it's input a lexical specification in a special
language which supports "regular expression" notation. The theory and
operation of LEX is somewhat complex, so it is suggested that you read
the LEX documentation before trying to use LEX.
LEX normally reads the grammar from the standard input, writing the C
program to the file 'lextab.c'. It may be further controlled by using
the following flags upon invocation:
-i filename The grammar is read from 'filename'.
-o filename The analyser is written to 'filename'.
-t name The default finite-state automaton is named
lextab (and it is, by default, written to file
'lextab.c'). The -t switch causes the internal
tables to be named 'name' and, if the -o switch
is not given, written to file 'name.c'. This is
necessary if the processor-switching capabilities
described in a later section are to be used.
-e name "Easy" command line. "-e name" is equivalent to
typing:
-i name.LXI -o name.C -t name
Do not include device names or file extensions on
the "easy" command line.
-v [filename] Internal state info is written to filename.
If filename not present, state information is
written to file 'lex.out.'
-d Enable various debugging printouts.
-s Generate analyzer without references to standard
I/O. Used for programs which do not employ the
standard I/O functions.